package com.qf.week1.day03;

/**
 * 立方体表面积计算
 */
public class Space {
    public static void main(String[] args) {
        int a = 1; //长
        int b = 2; //宽
        int c = 3; //高
        long space = space(a,b,c);


        System.out.println(space);
//        System.out.println(1*2*2+1*3*2+2*3*2);
    }

    public static long space(int a,int b,int c) {
        long space= (a*b+a*c+c*b)*2;
        return space;
    }
}
